package org.example.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.order.entity.Comment;

import java.util.List;
import java.util.Map;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    List<Comment> getList();

    List<Comment> selectThingCommentList(String goodId, String order);

    List<Comment> selectUserCommentList(String userId);

    List<Comment> selectWithTitle(Comment comment, Integer pageNum, Integer pageSize);

    List<Comment> selectByUserIdOrGoodIdOrGoodName(Map<String, Object> params);
}